package indi.h.security.signature;

import java.nio.charset.Charset;

import indi.h.security.Parameters;

public class SVParameter implements Parameters {

	private String algorithm;
	/**
	 * 产生钥匙的密码,此值导致产生的公钥和私钥相同,一般不设置
	 */
	private String secureRandom;
	private String signAlgorithm;
	/**
	 * 产生签名的密码,此值导致产生的签名相同,一般不设置
	 */
	private String signSecureRandom;
	private Charset code;
	private int length;

	public SVParameter() {
		// TODO Auto-generated constructor stub
	}

	public String getAlgorithm() {
		return algorithm;
	}

	public void setAlgorithm(String algorithm) {
		this.algorithm = algorithm;
	}

	public Charset getCode() {
		return code;
	}

	public void setCode(Charset code) {
		this.code = code;
	}

	public String getSignAlgorithm() {
		return signAlgorithm;
	}

	public void setSignAlgorithm(String signAlgorithm) {
		this.signAlgorithm = signAlgorithm;
	}

	public String getSecureRandom() {
		return secureRandom;
	}

	public void setSecureRandom(String secureRandom) {
		this.secureRandom = secureRandom;
	}

	public String getSignSecureRandom() {
		return signSecureRandom;
	}

	public void setSignSecureRandom(String signSecureRandom) {
		this.signSecureRandom = signSecureRandom;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public Parameters clone() {
		try {
			return (Parameters) super.clone();
		} catch (CloneNotSupportedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}
}
